<template>
    <div >
        <el-button>$listeners - 父组件{{ childADD }}</el-button>
        <br />
        <child-com v-on="{changeName}" @test-a="parentClick"></child-com>
    </div>
</template>

<script>
import childCom from "./child-com.vue";
export default {
    data() { 
        return {
            childADD: ""
        }
    },
    components: {
        childCom,
    },
    methods: {
        parentClick() {
            console.log("这是父组件的点击");
        },
        changeName(val) { 
            this.childADD = val;
        }
    },
};
</script>

<style>
</style>